﻿@{
    ViewBag.Title = "Simplified ASP.Net MVC 4.0 Code Samples";
}

<style>
    table {
   width:100%;
}
#TableHeader
{
   
    background-color:Gray;
}
.Col1
{
    width:50%;
}
.Col2
{
    width:30%;
}
.Col3
{
    width:20%;
}
</style>

@section featured {
    <section class="featured">
        <div class="content-wrapper">
            <hgroup class="title">
                <h1>@ViewBag.Title.</h1>
                <h4>@ViewBag.Message</h4>
            </hgroup>
        </div>
    </section>
}


<table id="examples"  >
    <tr id="TableHeader">
        <td class="Col1">
            Task Title
        </td> 
        <td class="Col2">
            Sample Page
        </td>
        <td class="Col3">
            Code Plex Chnage Set
        </td>
    </tr>
    @foreach (MVC4CodeSamples.CodeSample item in MVC4CodeSamples.CodeSample.Samples)
    {
        
        <tr>
            <td class="Col1">
                @item.Title
            </td>
            <td class="Col2">
                <a href="@item.Location">@item.Location</a>
            </td>
            <td class="Col3">
                <a href="https://mcv4simplifiedcodesamples.codeplex.com/SourceControl/changeset/@item.ChangeSet">
                    Change Set:@item.ChangeSet</a>
            </td>
        </tr>
    
   
    }
</table>

